from Game import Game

class BanZi(Game):
    def __init__(self):
        self.quanList= ["棒子","老虎","鸡","虫子"]
        self.result["游戏"]="动物园"

    def getName(self):
        return "棒子老虎鸡"

    def printWelCome(self):
        print("欢迎来到动物园")

    def caiJueJieGuo(self):
        if self.quanPlayer == "棒子" and self.quanComputer == "老虎" or self.quanPlayer == "老虎" and self.quanComputer == "鸡" or self.quanPlayer == "鸡" and self.quanComputer == "虫子" or self.quanPlayer == "虫子" and self.quanComputer == "棒子":
            self.result["结果"] = "玩家胜"
            print("恭喜主人获胜")
        elif self.quanComputer == "棒子" and self.quanPlayer == "老虎" or self.quanComputer == "老虎" and self.quanPlayer == "鸡" or self.quanComputer == "鸡" and self.quanPlayer == "虫子" or self.quanComputer == "虫子" and self.quanPlayer == "棒子":
            self.result["结果"] = "电脑胜"
            print("嘿嘿嘿，Siri胜")
        else:
            self.result["结果"] = "平局"
            print("居然平局了")
        print(self.result)